import Vue from 'vue'
import App from './App'
import Header from './components/common/Header'
import Vuex from 'vuex'
import axios from 'axios'
import vueResource from 'vue-resource'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'    // 默认主题
// import '../static/css/theme-green/index.css';       // 浅绿色主题
import "babel-polyfill";
import ECharts from 'vue-echarts/components/ECharts.vue'
import {DatePicker} from 'element-ui'
import $ from 'jquery'
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded'
Vue.component(DatePicker.name, DatePicker)
Vue.component('chart', ECharts)
Vue.use(vueResource)
Vue.use(ElementUI)
Vue.use(Vuex)
Vue.use($)
Vue.prototype.$axios = axios
global.BASE_URL = 'http://123.56.221.97:8080/SSMStudy/'
import router from './router';
const store = new Vuex.Store({
    state: {
        count: 0,
        color: ['#325B69', '#698570', '#AE5548', '#6D9EA8', '#9CC2B0', '#C98769']
    }
});
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');
new Vue({
    router,
    store,
    render: h => h(Header)
}).$mount('.header');
